<template>
	<view class="address-item" @click="handleClick">
		<u-image width="80rpx" height="80rpx" shape="circle" :src="info.image"></u-image>
		<view class="department">
			{{info.departmentName || info.classify_name}}
		</view>
		<view class="name">
			{{info.name}}
		</view>
	</view>
</template>

<script>
	export default {
		name: 'AddressItem',
		props: {
			info: {
				type: Object,
				default () {
					return {}
				}
			}
		},
		methods: {
			handleClick () {
				this.$emit('click', this.info);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.address-item {
		display: flex;
		align-items: center;
		padding: 20rpx 30rpx;
		.department {
			margin-left: 28rpx;
		}
		.name {
			margin-left: 20rpx;
		}
	}
	
	
	
	
	
	
</style>
